import React from 'react';
import { Button } from 'antd';

export default function Two(props) {
  const { history } = props;
  // console.log('two 中的数据', history, match);
  return (
    <div>
      <h3>Two</h3>
      <Button
        onClick={() => {
          history.push(`/routerLearn/three123`, {
            name: 'two',
            time: new Date().getTime()
          });
          // history.push('/routerLearn/dynamic')
        }}
      >
        点击动态跳转 three
      </Button>
    </div>
  );
}
